audio_form object
This method will set the various outputs for the form.
bool set_output_mode(int speech_output, bool beeping_progress_bar=false)
Parameters:
speech_output
The type of speech output to use.
beeping_progress_bars
An optional parameter indicating whether progress bars should speak percentages or indicate them with beeps.
Return value:
true on success, false on failure.
Remarks:
The speech_output parameter can be 0 to use Sapi, or it can correspond to one of the four screen readers that are currently supported in BGT.
Example:
// Make a simple form with a few buttons and a text field, and get Jaws to read the form.
#include "form.bgt"
audio_form form;
void main()
{
install_keyhook();
form.set_output_mode(JAWS);
form.create_window("Example Form", true);
int test=form.create_input_box("Test", "test", "", 0, false, false);
int ok=form.create_button("OK");
int cancel=form.create_button("E&xit");
while(true)
{
form.monitor();
wait(5);
if(form.is_pressed(ok))
{
uninstall_keyhook();
exit();
}
if(form.is_pressed(cancel))
{
uninstall_keyhook();
exit();
}
if((key_down(KEY_LMENU))&&(key_pressed(KEY_F4)))
{
uninstall_keyhook();
exit();
}
}
}